﻿namespace JX.Core.Entity
{
    /// <summary>
    /// 枚举 数据库读写分离
    /// </summary>
    public enum WriteAndReadEnum
    {
        /// <summary>
        /// 未启用
        /// </summary>
        None,
        /// <summary>
        /// 主库
        /// </summary>
        Write,
        /// <summary>
        /// 从库
        /// </summary>
        Read
    }

    /// <summary>
    /// 枚举 读库的策略
    /// </summary>
    public enum QueryDBStrategyEnum
    {
        /// <summary>
        /// 随机
        /// </summary>
        Random,
        /// <summary>
        /// 轮询
        /// </summary>
        Polling
    }
}
